package cn.jinjimi.app.store.entity;


/**
 * 文章数据表
 */
public class ArticleEntity extends EntityBase {

    public static final int STATUS_USER_HAS_READED = 1;

    private String id;

    private String title;

    /**
     * URL
     */
    private String base_url;

    /**
     * 作者
     */
    private String author;

    private int author_id = 0;

    /**
     * 阅读次数
     */
    private int read_num = 0;

    /**
     * 是否已阅
     * 1:已阅
     * 0:default
     */
    private int read_status = 0;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBaseUrl() {
        return base_url;
    }

    public void setBaseUrl(String base_url) {
        this.base_url = base_url;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getAuthord() {
        return author_id;
    }

    public void setAuthorId(int author_id) {
        this.author_id = author_id;
    }

    public int getReadum() {
        return read_num;
    }

    public void setReadum(int read_num) {
        this.read_num = read_num;
    }

    public int getReadtatus() {
        return read_status;
    }

    public void setReadStatus(int read_status) {
        this.read_status = read_status;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof ArticleEntity) {
            return getId().equals(((ArticleEntity) obj).getId());
        }
        return false;
    }
}
